package com.fenghen.system.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fenghen.common.annotation.Excel;
import com.fenghen.common.core.domain.BaseEntity;

/**
 * 风险处理与跟踪模块对象 risk_mitigation
 * 
 * @author fenghen
 * @date 2024-11-06
 */
public class RiskMitigation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long mitigationId;

    /** 关联的风险ID */
    @Excel(name = "关联的风险ID")
    private Long riskId;

    /** 风险处理计划或措施 */
    @Excel(name = "风险处理计划或措施")
    private String actionPlan;

    /** 负责处理该风险的人员 */
    @Excel(name = "负责处理该风险的人员")
    private String responsiblePerson;

    /** 预计完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预计完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dueDate;

    /** 处理状态 */
    @Excel(name = "处理状态")
    private String status;

    /** 风险识别模块信息 */
    private List<RiskIdentification> riskIdentificationList;

    public void setMitigationId(Long mitigationId) 
    {
        this.mitigationId = mitigationId;
    }

    public Long getMitigationId() 
    {
        return mitigationId;
    }

    public void setRiskId(Long riskId) 
    {
        this.riskId = riskId;
    }

    public Long getRiskId() 
    {
        return riskId;
    }

    public void setActionPlan(String actionPlan) 
    {
        this.actionPlan = actionPlan;
    }

    public String getActionPlan() 
    {
        return actionPlan;
    }

    public void setResponsiblePerson(String responsiblePerson) 
    {
        this.responsiblePerson = responsiblePerson;
    }

    public String getResponsiblePerson() 
    {
        return responsiblePerson;
    }

    public void setDueDate(Date dueDate) 
    {
        this.dueDate = dueDate;
    }

    public Date getDueDate() 
    {
        return dueDate;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public List<RiskIdentification> getRiskIdentificationList()
    {
        return riskIdentificationList;
    }

    public void setRiskIdentificationList(List<RiskIdentification> riskIdentificationList)
    {
        this.riskIdentificationList = riskIdentificationList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mitigationId", getMitigationId())
            .append("riskId", getRiskId())
            .append("actionPlan", getActionPlan())
            .append("responsiblePerson", getResponsiblePerson())
            .append("dueDate", getDueDate())
            .append("status", getStatus())
            .append("riskIdentificationList", getRiskIdentificationList())
            .toString();
    }
}
